<script type="text/html" template>

    <div class="layui-form layui-form-pane" lay-filter="LAY-home-navigate-listform"
         id="LAY-home-navigate-listform" style="padding: 20px 30px 0 0;">
        <div class="layui-form-item">
            <label class="layui-form-label">导航名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" autocomplete="off" placeholder="请输入" lay-verify="required"
                       class="layui-input"
                       value="{{ d.params.name || '' }}"
                >

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">导航名称</label>
            <div class="layui-input-block">
                <input type="text" name="en_name" autocomplete="off" placeholder="请输入导航名称(如：index)"
                       lay-verify="required"
                       class="layui-input"
                       id="enName"
                       value="{{ d.params.en_name || '' }}"
                >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否显示</label>
            <div class="layui-input-block">


                {{# layui.each(['关','开'],function(index,item){ }}
                <input type="radio" name="isshow" value="{{= index}}" title="{{= item}}"
                       {{# if(d.params.isshow== undefined){d.params.isshow=1 } }}
                       {{# if(d.params.isshow== index){ }}
                       checked
                       {{# } }}
                >
                {{# }); }}

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">打开新页面</label>
            <div class="layui-input-block">


                {{# layui.each(['关','开'],function(index,item){ }}
                <input type="radio" name="opennew" value="{{= index}}" title="{{= item}}"
                       {{# if(d.params.opennew== undefined){d.params.opennew=1 } }}
                       {{# if(d.params.opennew== index){ }}
                       checked
                       {{# } }}
                >
                {{# }); }}
            </div>
        </div>
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">是否外链</label>-->
<!--            <div class="layui-input-block">-->
<!--                {{# layui.each(['内链','外链'],function(index,item){ }}-->
<!--                <input type="radio" name="is_link" value="{{= index}}" title="{{= item}}"-->
<!--                       {{# if(d.params.is_link== undefined){d.params.is_link=0 } }}-->
<!--                       {{# if(d.params.is_link== index){ }}-->
<!--                       checked-->
<!--                       {{# } }}-->
<!--                >-->
<!--                {{# }); }}-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">动态地址</label>-->
<!--            <div class="layui-input-block">-->
<!--                <input type="text" name="url" autocomplete="off" placeholder="请输入/index/page/[请输入路由]"-->
<!--                       lay-verify="required"-->
<!--                       class="layui-input" id="dynamic_url"-->
<!--                       value="{{ d.params.url || '' }}"-->
<!--                >-->
<!--            </div>-->
<!--        </div>-->
        <div class="layui-form-item">
            <label class="layui-form-label">静态地址</label>
            <div class="layui-input-block">
                <input type="text" name="writeurl" autocomplete="off" placeholder="/[请输入路由]" lay-verify="required"
                       class="layui-input" id="static_url"
                       value="{{ d.params.writeurl || '' }}"
                >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-block">

                {{# if(d.params.type == 1 || d.params.type == undefined){ }}
                <input type="radio" name="type" value="1" title="网页" checked>
                <input type="radio" name="type" value="2" title="锚点">
                {{# } else { }}
                <input type="radio" name="type" value="1" title="网页">
                <input type="radio" name="type" value="2" title="锚点" checked>
                {{# } }}

            </div>
        </div>
<!--        <div class="layui-form-item">-->
<!--            <label class="layui-form-label">手机端</label>-->
<!--            <div class="layui-input-block">-->
<!--                {{# layui.each(['关','开'],function(index,item){ }}-->
<!--                <input type="radio" name="is_mobile" value="{{= index}}" title="{{= item}}"-->
<!--                       {{# if(d.params.is_mobile== undefined){d.params.is_mobile=0 } }}-->
<!--                       {{# if(d.params.is_mobile== index){ }}-->
<!--                       checked-->
<!--                       {{# } }}-->
<!--                >-->
<!--                {{# }); }}-->
<!--            </div>-->
<!--        </div>-->
        <input type="hidden" id="mobile_ico" name="mobile_ico" value="{{ d.params.mobile_ico  }}">
        <input type="hidden" id="ico" name="ico" value="{{ d.params.ico  }}">
        <input type="hidden" id="hico" name="hico" value="{{ d.params.hico  }}">

        <div class="layui-form-item">
            {{# if(d.params.mode != 'read'){ }}
            <button class="layui-btn" lay-submit lay-filter="LAY-home-navigate-listform-submit">确认</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            {{# } }}

        </div>
    </div>
</script>